﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using APILocawebGateway.VISA;
using APILocawebGateway.REDECARD;

namespace Exemplo
{
    public class Global : System.Web.HttpApplication
    {
        //toda a aplicação consegue acessar esta variável
        public static ConfiguracaoVISA configuracaoVisaVBV;
        public static ConfiguracaoREDECARD configuracaoREDECARD;

        protected void Application_Start(object sender, EventArgs e)
        {
            //Configurando no app Start 
            
            configuracaoVisaVBV = new ConfiguracaoVISA("0123456789", APILocawebGateway.VISA.FormaPagamento.CreditoaVista, APILocawebGateway.AMBIENTE.PRODUCAO, "0123456789", "www.urlRetornoVisa.com");
            configuracaoREDECARD = new ConfiguracaoREDECARD(APILocawebGateway.AMBIENTE.PRODUCAO, "0123456789", "0123456789");

        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}